﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="_20200302lianxi2.login" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h1>请输入个人详细信息</h1>
        <p>用户名：&nbsp; 
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="请输入用户名" ForeColor="Red"></asp:RequiredFieldValidator>
        </p>
        <p>密码：&nbsp;&nbsp; 
            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2" ErrorMessage="请输入密码" ForeColor="Red"></asp:RequiredFieldValidator>
        </p>
        <p>确认密码：<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox3" ErrorMessage="请确认密码" ForeColor="Red"></asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBox2" ControlToValidate="TextBox3" ErrorMessage="两次密码不一致" ForeColor="Red"></asp:CompareValidator>
        </p>
        <p>性别：&nbsp;&nbsp; 
            <asp:RadioButton ID="RadioButton1" runat="server" Text="男" />
            <asp:RadioButton ID="RadioButton2" runat="server" Text="女" />
        </p>
        <p>籍贯：&nbsp;&nbsp; 
            <asp:DropDownList ID="DropDownList1" runat="server">
                <asp:ListItem>安徽省</asp:ListItem>
                <asp:ListItem>江苏省</asp:ListItem>
                <asp:ListItem>湖北省</asp:ListItem>
                <asp:ListItem>北京市</asp:ListItem>
                <asp:ListItem>重庆市</asp:ListItem>
                <asp:ListItem>上海市</asp:ListItem>
                <asp:ListItem>河南省</asp:ListItem>
            </asp:DropDownList>
        </p>
        <p>Email：&nbsp; 
            <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBox4" ErrorMessage="请输入邮箱" ForeColor="Red"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox4" ErrorMessage="邮箱格式不正确" ForeColor="Red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
        </p>
        <p>手机号：&nbsp; 
            <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TextBox5" ErrorMessage="请输入手机号" ForeColor="Red"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBox5" ErrorMessage="请输入正确的手机号" ForeColor="Red" ValidationExpression="(\(\d{3}\)|\d{3}-)?\d{8}"></asp:RegularExpressionValidator>
        </p>
        <p>专业擅长：<asp:ListBox ID="ListBox1" runat="server" Height="41px">
            <asp:ListItem>windows编程</asp:ListItem>
            <asp:ListItem>Asp.Net编程</asp:ListItem>
            <asp:ListItem>单片机编程</asp:ListItem>
            <asp:ListItem>C#编程</asp:ListItem>
            </asp:ListBox>
        </p>
        <p>业余爱好：<asp:CheckBox ID="CheckBox1" runat="server" Text="足球" />
            <asp:CheckBox ID="CheckBox2" runat="server" Text="篮球" />
            <asp:CheckBox ID="CheckBox3" runat="server" Text="排球" />
            <asp:CheckBox ID="CheckBox4" runat="server" Text="唱歌" />
            <asp:CheckBox ID="CheckBox5" runat="server" Text="其他" />
        </p>
        <p>个人照片：</p>
        <p>备注信息：<asp:TextBox ID="TextBox7" runat="server" Height="167px" Rows="15" Width="295px"></asp:TextBox>
        </p>

    </div>
        <div style="margin-left: 80px">
&nbsp;&nbsp;
            <asp:Button ID="Button1" runat="server" Text="提交" OnClick="Button1_Click" />
&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Button2" runat="server" Text="重置" OnClick="Button2_Click" />
        </div>
    </form>
</body>
</html>
